<template>
	<view>
		<myHeader></myHeader>
		<template v-if="userInfo.token">
			<loginOrderListVue :productType="productType"></loginOrderListVue>
		</template>
		<template v-else>
			<noLoginOrderListVue></noLoginOrderListVue>
		</template>
	</view>
</template>

<script setup>
import { ref, reactive, onMounted } from 'vue';
import { onLoad, onShow } from '@dcloudio/uni-app';
import { storeToRefs } from 'pinia';
import initApi from '@/apis/init.js';
import { constStore } from '@/store/const.js';
import { useUserStore } from '@/store/user.js';

import loginOrderListVue from './component/loginOrderList.vue';
import noLoginOrderListVue from './component/noLoginOrderList.vue';
const { userInfo } = useUserStore();

const productType = ref();
onLoad((query) => {
	if (query && query.productType) {
		productType.value = query.productType;
	}
});
</script>

<style></style>
